package cn.edu.csust.cvs.management.repository.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.Immutable;

import javax.persistence.*;

/**
 * @Auther: snail
 * @Date: 2021/1/22 00:30
 * @Description: 用户操作统计实体视图
 */
@Data
@Entity
@Immutable
@Table(name = "stats_user_view")
@ApiModel("用户操作统计实体视图")
public class UserStatsView {

    @ApiModelProperty("主键")
    @Id
    @Column(name = "id")
    private Integer id;

    @ApiModelProperty("用户名")
    @Column(name = "realname")
    private String realname;

    @ApiModelProperty("视频数量")
    @Column(name = "video_count")
    private Integer videoCount;

    @ApiModelProperty("文本编辑次数")
    @Column(name = "text_edit_times")
    private Integer textEditTimes;

    @ApiModelProperty("视频编辑次数")
    @Column(name = "video_edit_times")
    private Integer videoEditTimes;

}
